package com.gitee.wsl.android.ui.spannable.span

import android.text.TextPaint
import android.text.style.CharacterStyle
import android.text.style.UpdateAppearance

class ShadowSpan private constructor(
    private val radius: Float,
    private val dx: Float,
    private val dy: Float,
    private val shadowColor: Int
) : CharacterStyle(), UpdateAppearance {
    override fun updateDrawState(tp: TextPaint) {
        tp.setShadowLayer(radius, dx, dy, shadowColor)
    }
}